<template>
  <div id="updateUser">
    <div class="updateUser">
      <ul>
        <li>
          <label>姓名：</label>
          <input type="text" v-model="updateuser.username" />
        </li>
        <li>
          <label>密码：</label>
          <input type="text" v-model="updateuser.password" />
        </li>
      </ul>
      <div class="buttons">
        <button style=" backgroundColor:skyblue;" @click="$emit('updateUsersignOut')">退出</button>
        <button style=" backgroundColor:yellow;" @click="$emit('updateUserSubmit')">提交</button>
      </div>
    </div>
  </div>
</template>


<script>
export default {
  name: "App",
  props: ["updateuser"],
  components: {},
  data() {
    return {};
  },
  //方法 函数写这里
  methods: {
    updateUserSubmit() {
      console.log(1);
    }
  },
  //计算属性
  computed: {},
  //侦听器
  watch: {},
  //过滤器
  filters: {},
  //以下是生命周期
  //组件创建之前
  beforeCreate() {},
  //组件创建之后
  created() {},
  //页面渲染之前
  beforeMount() {},
  //页面渲染之后
  mounted() {},
  //页面视图数据更新之前
  beforeUpdate() {},
  //页面视图数据更新之后
  updated() {},
  //页面销毁之前
  beforeDestroy() {},
  //页面销毁之后
  destroyed() {}
};
</script>
<style lang="scss" scoped>
.updateUser {
  width: 1000px;
  height: 600px;
  background-color: #fff;
  position: absolute;
  top: 50px;
  left: 200px;
  box-shadow: #ccc 0px 0px 40px;
}
.updateUser ul {
  margin-top: 20px;
}

.updateUser ul li {
  margin: 10px 0px;
}

.updateUser ul li label {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  width: 100px;
  height: 40px;
  margin: 0 20px;
  text-align: right;
}

.updateUser ul li input {
  width: 500px;
  height: 26px;
}

.updateUser .buttons {
  display: flex;
  width: 400px;
  font-size: 16px;
  justify-content: space-between;
  align-items: center;
  margin-left: 140px;
}
.updateUser .buttons button {
  width: 80px;
  height: 30px;
}
</style>
